package org.example.wu_and_dian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.wu_and_dian.dto.request.UpdateDocument;
import org.example.wu_and_dian.entity.Document;

import java.util.List;

/**
* @author SS2613
* @description 针对表【document】的数据库操作Mapper
* @createDate 2025-03-20 11:34:39
* @Entity .entity.Document
*/
public interface DocumentMapper extends BaseMapper<Document> {
    List<Document> selectDocumentsByProjectId(String projectId);

    void insertDocument(Document document);

    int deleteById(String id);


    Document selectById(String id);

    int updateDocument(UpdateDocument updateDocument);

    int updateContentById(Document document);

    int updateContentAuthorById(Document document);
}




